package org.jeecg.modules.basedata.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.jeecg.entity.basedata.BaseTenant;
import org.jeecg.modules.system.entity.SysDepart;
import org.jeecg.modules.system.model.SysDepartTreeModel;
import org.jeecg.vo.basedata.BaseTenantPage;

import java.util.List;

/**
 * @Description: 租户
 * @Author: jeecg-boot
 * @Date:   2019-07-30
 * @Version: V1.0
 */
public interface BaseTenantMapper extends BaseMapper<BaseTenant> {

    List<BaseTenantPage> getBaseTenantPage(Page<BaseTenantPage> page, @Param("tenantPage") BaseTenantPage tenantPage);

    public List<SysDepartTreeModel> queryTenantTreeList(@Param("floorId") String floorId);

    public List<SysDepart> querFloorTreList();

    public BaseTenant getTenantByRoomId(@Param("roomId") String roomId);

    public String  getByTenantId(@Param("roomId") String roomId);

    public String  getByCustomerId(@Param("roomId") String roomId);

    BaseTenant detailById(@Param("id") String id, @Param("methodId") String methodId);

    List<BaseTenant> getTenant(@Param("baseTenant") BaseTenant baseTenant);
}
